<template>

	<div class="setLogin">
		<yd-cell-item class="my-cell-item" arrow  @click.native="setOpenApp('http://www.zhudd.com/service/aboutus')">
			<span slot="left">企业介绍</span>
			<span slot="right"></span>
		</yd-cell-item>
		<yd-cell-item class="my-cell-item" arrow @click.native="setOpenApp('http://www.zhudd.com/service/law')">
			<span slot="left">网站协议</span>
			<span slot="right"></span>
		</yd-cell-item>
	</div>
</template>

<script>
	import { mapGetters, mapActions } from 'vuex'
	export default {
		name: 'aboutwe',
		data() {
			return {
				source: "web",
				token: "",
				userId: ""
			}
		},
		mounted() {
			var that = this;
			if(sessionStorage.getItem("userinfo") != null) {
				let getHiss = JSON.parse(sessionStorage.getItem("userinfo"));
				that.userId = getHiss.id;
				that.token = getHiss.token;
			} else {
				that.$router.push({
					path: "/login"
				})
			}
		},
		methods: {
			...mapActions({
				setOpenApp:'setOpenApp'
			}),
		}
	}
</script>

<style scoped>
	.setLogin{
		background: #EEEEEE;
	}
	.my-cell-item {
		border-bottom: 1px solid #eeeeee;
		font-size: .31rem;
		color: #282828;
		background: #fff;
	}
	
	.setLogin .yd-cell-item:not(:last-child):after {
		display: none;
	}
	
	.outlogin {
		width: 100%;
		font-size: .31rem;
		color: #e34648;
		text-align: center;
		height: 1rem;
		line-height: 1rem;
		margin-top: .1rem;
		background: #fff;
	}
</style>